package com.cn.pet.util;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author: yanghaohao@jd.com
 * @date: 2018/6/20
 */
public class DateUtil {

    public static DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");

    public static String parseDate2String(Date date){
        return dateFormat.format(date);
    }
}
